#ifndef DRAGLIST_H
#define DRAGLIST_H

#include <QListWidget>

class DragList : public QListWidget
{
	Q_OBJECT

public:
	DragList(QWidget *parent = 0);
	~DragList();
protected:
	void mousePressEvent(QMouseEvent *event);
	void mouseMoveEvent(QMouseEvent *event);
	void dragEnterEvent(QDragEnterEvent *event);
	void dragMoveEvent(QDragMoveEvent *event);
	void dropEvent(QDropEvent *event);
private:
	void startDrag();
	QPoint startPos;
};

#endif // DRAGLIST_H
